package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("d_dist_group")
public class DistGroup extends Model<DistGroup> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("分组名")
    private String name;

    @ApiModelProperty("按比例分佣 0按比例分 1按固定金额分")
    private Integer type;

    @ApiModelProperty("佣金比例")
    private Float rate;

    @ApiModelProperty("分销者获得金额 以分为单位")
    private Integer money;

    @ApiModelProperty("被分享者获得其中一张券")
    private String couponId;

    @ApiModelProperty("调转页面背景图")
    private String img;

    @ApiModelProperty(hidden = true)
    private Date addTime;
}
